<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>

<script>
// import Home from "./views/Home.vue";
//import * as axios from "axios";
export default {
  name: "App",
  components: {
    // Home,
  },
  data:()=>({
    
    // username: "",
    // password: "",
  }),
     methods: {
    /*login() {
      axios
        .post("http://localhost:8888/login", {
          username: this.username,
          password: this.password,
        })
        .then((response) => {
          this.result = response;
          if (this.result.data.code == "-1") this.wronginfo = "账号或密码错误";
          else if (this.result.data.code == "01") {
            this.wronginfo = "账号或密码正确";
            this.$router.push({ path: "/Mainpage" });
          } else {
            this.wronginfo = "Unknown Error";
          }
        })
        .catch(function (error) {
          console.log(error);
        });
    },*/
  },
};
</script>